﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Demo0521
{
    enum Pedlarname
    {
        //武器
        武器,
        //材料
        材料,
        //食物
        食物
    }
    //商贩npc
    class PedlarNpc:NPC
    {
        private string article;
        private string Sname;
        private Pedlarname pedlarname;
        public string Article { get { return this.article; }set { this.article = value; } }
        public string Name { get { return this.Sname; }set { this.Sname = value; } }
        public Pedlarname PedlarName { get { return this.pedlarname; }set { this.pedlarname = value; } }
        public PedlarNpc(string name,NpcType type,Pedlarname pedlarname,string Sname,string article):base(name,type)
        {
            this.Sname = Sname;
            this.article = article;
            this.pedlarname = pedlarname;
        }
        public override void Chat()
        {
            Console.WriteLine("请问需要点什么？NPC：{0}，这个NPC买{1},商品名：{2}，商品描述：{3}", base.Name,this.pedlarname,this.Sname,this.article);
        }
    }
}
